<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<p>
<c:choose>
    <c:when test="${empty sessionScope.username}">
        <a href="${pageContext.request.contextPath}/adduser.jsp">Sign up</a> |
        <a href="${pageContext.request.contextPath}/loginForm.jsp">Login</a>
    </c:when>
    <c:otherwise>
        Welcome <a href="${pageContext.request.contextPath}/wall?w=%7E${sessionScope.username}">${sessionScope.username}</a>! |
        <a href="${pageContext.request.contextPath}/addwall.jsp">Build a Wall</a> |
        <a href="${pageContext.request.contextPath}/logout">Logout</a>
    </c:otherwise>
</c:choose>
</p>
